#ifndef ACCOUNTMANAGEVIEW_H
#define ACCOUNTMANAGEVIEW_H

#include <QDialog>
#include "dboperate.h"

namespace Ui {
class AccountManageView;
}

class AccountManageView : public QDialog
{
    Q_OBJECT

public:
    explicit AccountManageView(QWidget *parent = 0);
    ~AccountManageView();

    void setRule(int, Rule);

private:
    void initData();

    void showEvent(QShowEvent *);

    void insertWidgetItem(int);

private slots:
    void clickedButton();

    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

private:
    Ui::AccountManageView *ui;
    QVector<AccountInfo> accountsInfo;
    Rule rule;
    int uuid;
};

#endif // ACCOUNTMANAGEVIEW_H
